from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from blog import views
admin.site.site_header = "博客文章管理"

urlpatterns = patterns('',
                       # 主页
                       url(r'^home/$', views.home, name='home'),
                       # 博客文章
                       url(r'^home/Article/(?P<postId>\d+)/$',
                           views.detail, name='detail'),
                       # 评论
                       url(r'^home/Article/comment/$',
                           views.comment, name='comment'),
                       # 更新评论
                       url(r'^home/Article/updateComment/(?P<postId>\d+)/$', views.updateComment,
                           name='updateComment'),
                       # 回复他人评论
                       #                        url(r'^home/Article/commentReply/$',
                       #                            views.commentReply, name='commentReply'),
                       # thinker-md编辑器
                       #                        url(r'^home/edit/$',
                       # views.thinkerMd, name='thinkerMd'),
                       )
